<?php
namespace DRY\Module;

/**
 * DonReY Framework 2012 :: TEST Module
 * Use this file as a reference to start writing your own modules.
 *
 * @author Wavetrex <wavetrex@gmail.com>
 * @link http://www.donrey.net/Documentation/Structure/Modules/test.html
 * @license [GPL v3] http://www.gnu.org/licenses/gpl-3.0.html
 * @version 1.0.dev
 * @package DonReY
 */
class Test extends base
{
	protected $my_name;

	/**
	 * Init function, called by the core when module is first loaded.
	 * Init is usually used to set-up the module by reading the configuration, setting variables, making connections, etc.
	 *
	 * If not necessary, just leave it empty or delete it completely ( no error occurs if this method is missing )
	 * @param string $alias
	 * @param SimpleXMLElement $config
	 */
	public function __construct($alias, $config)
	{
		parent::__construct($alias, $config);
		$this-> my_name = "DonReY Framework Project";
	}

	/**
	 * Just an arbitrary method in the module's code (used in the example "entry-point.php" file.
	 */
	public function do_Something()
	{
		echo "Hello World, I'm a {$this-> my_name} !";
	}

	/**
	 * A special method, which is called by the core when running unload_All_Modules().
	 * Like a destructor, use this to save data, close connections, etc.
	 *
	 * If not necessary, just leave it empty or delete it completely ( no error occurs if this method is missing )
	 */
	public function self_Clean()
	{
	}
}